# Archlive <http://archlive-pkg.googlecode.com>

pkgname=guvcview
pkgver=1.4.4
pkgrel=1
pkgdesc="A video viewer and capturer for the linux uvc driver" 
arch=('i686' 'x86_64')
url="http://guvcview.berlios.de"
license=('GPL')
depends=('portaudio' 'gtk2' 'ffmpeg' 'v4l-utils')
makedepends=('pkg-config')
conflicts=('guvcview-svn')
optdepends=('pulseaudio: for PulseAudio support')
source=("http://download.berlios.de/$pkgname/$pkgname-src-$pkgver.tar.gz")
md5sums=('5a71d271c23476bdec3c7ae32dc7b0ca')

build() {
	cd "$srcdir/$pkgname-src-$pkgver"
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/$pkgname-src-$pkgver"
	make DESTDIR="$pkgdir" install
	mkdir -p $pkgdir/usr/share/locale/zh_CN/LC_MESSAGES
	msgfmt $startdir/zh_CN.po -o $pkgdir/usr/share/locale/zh_CN/LC_MESSAGES/guvcview.mo
}
